package de.tum.in.eist.poll.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.tum.in.eist.poll.shared.Poll;
import de.tum.in.eist.poll.shared.Result;
import de.tum.in.eist.poll.shared.Student;
import de.tum.in.eist.poll.shared.exceptions.PollNotFoundException;
import de.tum.in.eist.poll.shared.exceptions.UserNotFoundException;


@RemoteServiceRelativePath("poll")
public interface PollService extends RemoteService{

	void submitPoll(Result r, Student u)
 throws IllegalArgumentException,
			UserNotFoundException, PollNotFoundException;
	
	public List<Poll> getPolls();
	public List<Poll> getOpenPolls();
	public List<Poll> getClosedPolls();
}
